import time
from multiprocessing import Process

def test1():
    while True:
        print("----test1----")
        time.sleep(1)

def test2():
    while True:
        print("----test2----")
        time.sleep(1)

def main():
    t1 = Process(target=test1)
    t2 = Process(target=test2)

    t1.start()
    t2.start()


if __name__ == '__main__':
    main()
    